package com.kele.service.impl;

import com.kele.dao.CommentSonDao;
import com.kele.domain.CommentSon;
import com.kele.service.CommentSonService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class CommentSonServiceImpl implements CommentSonService {
    @Resource
    CommentSonDao commentSonDao;
    @Override
    public Integer insertCommentSon(CommentSon commentSon) {
        return commentSonDao.insertCommentSon(commentSon);
    }

    @Override
    public Integer deleteCommentSon(int commentsonid) {
        return commentSonDao.deleteCommentSon(commentsonid);
    }

    @Override
    public List<CommentSon> findCommentSon(int blogid, int userid, int bloggerid, int commentid) {
        return commentSonDao.findCommentSon(blogid, userid, bloggerid, commentid);
    }

    @Override
    public int deleteCommentSons(int commentid) {
        return commentSonDao.deleteCommentSons(commentid);
    }

    @Override
    public List<CommentSon> findCommentSons(int commentid) {
        return commentSonDao.findCommentSons(commentid);
    }


}
